7.1
HIGH CVSS 3.1
CVE-2023-36823
Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content
Description

Sanitize is an allowlist-based HTML and CSS sanitizer. Using carefully crafted input, an attacker may be able to sneak arbitrary HTML and CSS through Sanitize starting with version 3.0.0 and prior to version 6.0.2 when Sanitize is configured to use the built-in "relaxed" config or when using a custom config that allows `style` elements and one or more CSS at-rules. This could result in cross-site scripting or other undesired behavior when the malicious HTML and CSS are rendered in a browser. Sanitize 6.0.2 performs additional escaping of CSS in `style` element content, which fixes this issue. Users who are unable to upgrade can prevent this issue by using a Sanitize config that doesn't allow `style` elements, using a Sanitize config that doesn't allow CSS at-rules, or by manually escaping the character sequence `</` as `<\/` in `style` element content.

INFO

Published Date :

July 6, 2023, 4:15 p.m.

Last Modified :

Nov. 21, 2024, 8:10 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2023-36823 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Debian debian_linux
1 Sanitize_project sanitize
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Upgrade ruby-sanitize to address a cross-site scripting vulnerability.
  • Upgrade the ruby-sanitize package.
  • If unable to upgrade, configure Sanitize to disallow `style` elements or CSS at-rules, or escape the character sequence `</` as `<\/` in `style` element content.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-36823 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-36823 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-36823 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-36823 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/rgrove/sanitize/commit/76ed46e6dc70820f38efe27de8dabd54dddb5220
    Added Reference https://github.com/rgrove/sanitize/releases/tag/v6.0.2
    Added Reference https://github.com/rgrove/sanitize/security/advisories/GHSA-f5ww-cq3m-q3g7
    Added Reference https://lists.debian.org/debian-lts-announce/2023/11/msg00008.html
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Dec. 22, 2023

    Action Type Old Value New Value
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2023/11/msg00008.html No Types Assigned https://lists.debian.org/debian-lts-announce/2023/11/msg00008.html Mailing List
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Nov. 14, 2023

    Action Type Old Value New Value
    Added Reference GitHub, Inc. https://lists.debian.org/debian-lts-announce/2023/11/msg00008.html [No types assigned]
  • Initial Analysis by [email protected]

    Jul. 13, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://github.com/rgrove/sanitize/commit/76ed46e6dc70820f38efe27de8dabd54dddb5220 No Types Assigned https://github.com/rgrove/sanitize/commit/76ed46e6dc70820f38efe27de8dabd54dddb5220 Patch
    Changed Reference Type https://github.com/rgrove/sanitize/releases/tag/v6.0.2 No Types Assigned https://github.com/rgrove/sanitize/releases/tag/v6.0.2 Release Notes
    Changed Reference Type https://github.com/rgrove/sanitize/security/advisories/GHSA-f5ww-cq3m-q3g7 No Types Assigned https://github.com/rgrove/sanitize/security/advisories/GHSA-f5ww-cq3m-q3g7 Vendor Advisory
    Added CPE Configuration OR *cpe:2.3:a:sanitize_project:sanitize:*:*:*:*:*:ruby:*:* versions from (including) 3.0.0 up to (excluding) 6.0.2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.1
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.33 }} 0.12%

score

0.55434

percentile